package homework6_24.practice4;

import homework6_24.practice4.jiekou.*;

public class SmartMobilePhone extends Phone{
	public SmartMobilePhone(String brand, String model) {
		super(brand, model);
	}
	private Network network;
	private Photo photo;

	public void setNetwork(Network n){
		network = n;
	}

	public void setPhoto(Photo p){
		photo = p;
	}

	public void play(){
		System.out.println(getBrand()+"的"+getModel()+"手机正在播放视频！");
	}
	@Override
	public void call() {
		System.out.println(getBrand()+"的"+getModel()+"手机正在打电话！");
	}

	@Override
	public void message() {
		System.out.println(getBrand()+"的"+getModel()+"手机正在发短信！");
	}

	public void show(){
		this.call();
		this.message();
		this.play();
		network.surfing();
		photo.photograph();
	}
}
